package hip.util.db;

import java.io.Serializable;

/**
 * @author andong
 * @description 数据源实体类
 * @date 2012-12-26
 */
public class DataSourceEntity implements Serializable {
    /**
     *
     */
    private static final long serialVersionUID = -6184130096813409788L;

    private String id;

    // common
    private String driver;
    private String url;
    // common
    private String dataSourceName;
    private String dataSourceCode;
    private String dataBaseType;
    private String dataBaseName;
    private String serverName;
    private String dataBaseIp;
    private String dataBasePort;
    private String userName;
    private String password;
    // pool
    private Integer InitialSize;
    private Integer MinIdle;
    private Integer MaxActive;
    private Integer maxWait;
    private boolean testOnBorrow = false;
    // other
    private String defaultValue;
    private String remark;
    private String sysTarget;

    /**
     * 是否在采集监控页面显示
     */
    private boolean showInMonitor;


    public boolean isShowInMonitor() {
        return showInMonitor;
    }

    public void setShowInMonitor(boolean showInMonitor) {
        this.showInMonitor = showInMonitor;
    }

    public String getDriver() {
        return driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getDefaultValue() {
        return defaultValue;
    }

    public void setDefaultValue(String defaultValue) {
        this.defaultValue = defaultValue;
    }

    public Integer getInitialSize() {
        return InitialSize;
    }

    public void setInitialSize(Integer initialSize) {
        InitialSize = initialSize;
    }

    public Integer getMinIdle() {
        return MinIdle;
    }

    public void setMinIdle(Integer minIdle) {
        MinIdle = minIdle;
    }

    public Integer getMaxActive() {
        return MaxActive;
    }

    public void setMaxActive(Integer maxActive) {
        MaxActive = maxActive;
    }

    public Integer getMaxWait() {
        return maxWait;
    }

    public void setMaxWait(Integer maxWait) {
        this.maxWait = maxWait;
    }

    public boolean isTestOnBorrow() {
        return testOnBorrow;
    }

    public void setTestOnBorrow(boolean testOnBorrow) {
        this.testOnBorrow = testOnBorrow;
    }

    public String getDataBaseType() {
        return dataBaseType;
    }

    public void setDataBaseType(String dataBaseType) {
        this.dataBaseType = dataBaseType;
    }

    public String getDataBaseIp() {
        return dataBaseIp;
    }

    public void setDataBaseIp(String dataBaseIp) {
        this.dataBaseIp = dataBaseIp;
    }

    public String getDataBasePort() {
        return dataBasePort;
    }

    public void setDataBasePort(String dataBasePort) {
        this.dataBasePort = dataBasePort;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDataSourceName() {
        return dataSourceName;
    }

    public void setDataSourceName(String dataSourceName) {
        this.dataSourceName = dataSourceName;
    }

    public String getDataSourceCode() {
        return dataSourceCode;
    }

    public void setDataSourceCode(String dataSourceCode) {
        this.dataSourceCode = dataSourceCode;
    }

    public String getDataBaseName() {
        return dataBaseName;
    }

    public void setDataBaseName(String dataBaseName) {
        this.dataBaseName = dataBaseName;
    }

    public String getServerName() {
        return serverName;
    }

    public void setServerName(String serverName) {
        this.serverName = serverName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getSysTarget() {
        return sysTarget;
    }

    public void setSysTarget(String sysTarget) {
        this.sysTarget = sysTarget;
    }

}
